<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比较两个数字的大小</title>
</head>
<body>
    <script>
        var A=prompt("请输入第一个数：");
        var B=prompt("请输入第二个数：");
        if(A==B){
            console.log(A+"等于"+B);
        }else{
            if(A>B){
                console.log(A+"大于"+B);
            }
            if(A<B){
                console.log(A+"小于"+B);
            }
        }
    </script>
</body>
</html>